for r in range(4, 0, -1):
    print(' '*(4-r), end='')
    for c in range(r):
        print('#', end='')
    print()
